﻿<div class="top-row ps-3 navbar navbar-dark">
    <div class="container-fluid">
        <a class="navbar-brand" href="">Carlife.APi</a>
        <button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
            <span class="navbar-toggler-icon"></span>
        </button>
    </div>
</div>

<div class="@NavMenuCssClass" @onclick="ToggleNavMenu">
    <nav class="flex-column">
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="" Match="NavLinkMatch.All">
                <span class="oi oi-home" aria-hidden="true"></span> Home
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="counter">
                <span class="oi oi-plus" aria-hidden="true"></span> Counter
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="fetchdata">
                <span class="oi oi-list-rich" aria-hidden="true"></span> Fetch data
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="Ceshi">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 添加
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="CarGuan">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 车辆采购管理
            </NavLink>
        </div>
                <div class="nav-item px-3">

            <NavLink class="nav-link" href="CustomerRelationships">

                <span class="oi oi-list-rich" aria-hidden="true"></span> 客户关系管理
            </NavLink>
            <NavLink class="nav-link" href="Repayment">

                <span class="oi oi-list-rich" aria-hidden="true"></span> 还款信息
            </NavLink>
        </div>
                <div class="nav-item px-3">
            <NavLink class="nav-link" href="Marging">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 保证金管理
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="Financing">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 个人客户立项
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="FinancingFile">
                <span class="oi oi-list-rich" aria-hidden="true"></span>附件上传
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="Upload">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 立项审批管理
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="AuditSet">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 立项审核
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="Projectassignment">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 项目指派
            </NavLink>
        </div>
        

        <div class="nav-item px-3">
            <NavLink class="nav-link" href="Salelist">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 销售业绩列表
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="UserList">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 微信客户处理报表
            </NavLink>
            <NavLink class="nav-link" href="CarGuan">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 车辆采购管理
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="BookIndex">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 角色列表
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="UserIndex">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 用户列表
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="AddBooks">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 角色添加
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="PermissionSelect">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 权限选择
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="UserInfoAdd">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 用户添加
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="UserLogin">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 用户登录
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="Homepage">
                <span class="oi oi-list-rich" aria-hidden="true"></span> 首页看板
            </NavLink>
        </div>
    </nav>
</div>
@code {
    private bool collapseNavMenu = true;

    private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;

    private void ToggleNavMenu()
    {
        collapseNavMenu = !collapseNavMenu;
    }
}
